<script>
	import Vue from 'vue';
	export default {
		onLaunch: function() {
			let curSource = Vue.prototype.$store.getters.get_curSource
			if (!curSource) {
				let sources = Vue.prototype.$store.getters.get_sources
				Vue.prototype.$store.commit('set_curSource', sources[0])
			} else {
				Vue.prototype.$store.commit('set_curSource', curSource)
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "./static/iconfont.css";

	body {
		margin: 0;
		padding: 0;
		outline: 0;
		-webkit-tap-highlight-color: transparent;
		font-size: 16px;
	}

	.default-cover {
		position: relative;
		width: 100%;
		height: 100%;
		// border: 1px solid #E8E8E8;
		background-image: linear-gradient(to right bottom, rgba(0, 0, 255, 0.5), rgba(255, 0, 0, 0.5));

		&::before {
			content: attr(data-cover);
			font-size: 11px;
			color: #525252;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
		}
	}
</style>
